#ifndef DIFF_INT_H_
#define DIFF_INT_H_

class DiffInt{
public:
	DiffInt(const int diff,const int* b_ptr) : d(diff), b(b_ptr) {}
	DiffInt(const DiffInt& old) : d(old.d), b(old.b) {}
	~DiffInt() {}
	void set_diff(const int new_diff) {d = new_diff;}
	void set_ptr(const int* new_ptr)  {b = new_ptr;}
	int  get_diff() const {return d;}
	int* get_ptr() const {return b;}
	
	bool operator < (const DiffInt& di) {
			if (d > di.d) return true;
			if (d == di.d) return (*b == *(di.b));
			return false;
	}
	
private:
	int 	d;
	int* 	b;
}

#endif /*DIFF_INT_H_*/
